//
//  NSDictionary+ValueCheck.m
//  S-Wisdom
//
//  Created by 陈安群 on 15/8/4.
//  Copyright (c) 2015年 chenanqun. All rights reserved.
//

#import "NSDictionary+ValueCheck.h"

@implementation NSDictionary (ValueCheck)
- (NSString *)stringWithFilted:(NSString *)key
{
    id obj = [self objectForKey:key];
    if([obj isKindOfClass:[NSNull class]])
    {
        obj = @"";
    }
    return obj;
}

-(NSArray *)arrayWithFilted:(NSString *)key{
    
    id obj = [self objectForKey:key];
    if ([obj isKindOfClass:[NSNull class]]) {
        obj = @[@"kong"];
        [obj setObject:@"zanshu" forKey:@"areaName"];
    }
    return obj;
}
@end
